Date last visited順に取得する
code:script.js
import { fetchArplaPages } from '/api/code/arpla/fetchArplaPages/script.js'
export async function getLastVisited({num = 10}){
const data = await fetchArplaPages({sort:'accessed'});
const pages = data.pages.filter(page => page.pin === 0)
num = num > 20 ? 20 : num // 最大20件
return pages.slice(0,num)
}